/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package WebCrawlerBD.sqlmapdao;

import WebCrawlerBD.interfaces.PaginaDao;
import WebCrawlerBE.Pagina;
import com.ibatis.dao.client.DaoManager;
import java.util.List;

/**
 *
 * @author externo.drisco
 */
public class PaginaSqlMapDao extends BaseSqlMapDao implements PaginaDao{

    public PaginaSqlMapDao(DaoManager daoManager) {
        super(daoManager);
    }

    @Override
    public List<Pagina> obtenerBusqueda(List<String> arrTermino){
        return (List<Pagina>)queryForList("getListPageSearch",arrTermino);
    }

    @Override
    public List<Pagina> obtenerPaginasTemp(){
        return (List<Pagina>)queryForList("getPageTemp");
    }

    @Override
    public void insertarPagina(Pagina pag){
        insert("insertPage",pag);
    }

    @Override
    public void eliminarPagTemp(int idPagTemp){
        delete("deletePagTemp",idPagTemp);
    }
}
